package com.gecba.system.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gecba.system.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Time;

/**
 * @author ChenBo
 * @className TabTest
 * @date 2021/7/19 18:43
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "tab_test")
public class TabTest  extends BaseEntity {

    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Time simpleTime;
}
